function checkParams() {
    if($.trim($("#whatScene").val()).length === 0) {
        $("#errorMsg").html("请填写比赛场次");
        return;
    }
    var val=$('input:radio[name="gameStatus"]:checked').val();
    if(val==null){
        $("#errorMsg").html("请选择比赛结果");
        return;
    }
    if($.trim($("#integral").val()).length === 0) {
        $("#errorMsg").html("请填写所需积分");
        return;
    }

    let form = $("#form-data");
    let url = form.attr("action");
    $.post(url, form.serialize(), function (data) {
        data = eval('(' + data + ')');
        if (data.success) {
            let page = $("#page").val();
            let newUrl = url.substring(0, url.lastIndexOf()-9) + "activityUser/list";
            $("#main-page").load(newUrl, {"page":page === undefined ? 0 : page});
        } else { $("#errorMsg").html(data.message); }

    })
}
